package com.pubinfo.passbook.common.service.master.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.pubinfo.passbook.common.entity.TMdmCostCenter;
import com.pubinfo.passbook.common.entity.TMdmCostCenterGroup;
import com.pubinfo.passbook.common.mapper.TMdmCostCenterMapper;
import com.pubinfo.passbook.common.model.dto.MDM.MdmCostCenterParam;
import com.pubinfo.passbook.common.model.dto.MDM.MdmParam;
import com.pubinfo.passbook.common.service.master.ITMdmCostCenterService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author jobob
 * @since 2021-10-16
 */
@Service
@Slf4j
public class TMdmCostCenterServiceImpl extends ServiceImpl<TMdmCostCenterMapper, TMdmCostCenter> implements ITMdmCostCenterService {
  
  @Override
  public IPage<TMdmCostCenter> listMdmCostCenter(MdmParam param) {
    IPage<TMdmCostCenter> iPage = page(param.getPage("create_time"));
    return this.baseMapper.listMdmCostCenter(iPage, param);
  }
  
  @Override
  public IPage<TMdmCostCenter> selectMdmCostCenter(MdmCostCenterParam param) {
    IPage<TMdmCostCenter> iPage = page(param.getPage("msgid"));
    return this.baseMapper.selectMdmCostCenter(iPage, param);
  }
}
